{% extends "base.html" %}

{% block main %}

<div class="path">
    <p><b>Copying</b></p>
    <p class="break-word">
        Source path: {{from_path}}<br>
        Destination folder: {{to_path}}
    </p>
    <p>
        <b><a href="{{url_for('copymove', path=from_path, to=to_path, action='copy')}}"><i class="fa fa-check-circle"></i> Copy</a></b> &nbsp;
        <b><a href="{{url_for('copymove', path=from_path, to=to_path, action='move')}}"><i class="fa fa-check-circle"></i> Move</a></b> &nbsp;
        <b><a href="{{url_for('main', path=from_folder)}}"><i class="fa fa-times-circle"></i> Cancel</a></b>
    </p>
    <p><i>Select destination folder</i></p>
    <ul class="folders break-word">
        {% if parent_path %}
        <li><a href="{{url_for('copymove', path=from_path, to=parent_path)}}"><i class="fa fa-chevron-circle-left"></i> ..</a></li>
        {% endif %}

        {% for folder in folders %}<li>
        <a href="{{url_for('copymove', path=from_path, to=folder['path'])}}"><i class="fa fa-folder-o"></i> {{folder['name']}}</a></li>
        {% endfor %}
    </ul>
</div>

{% endblock %}